package com.alisls.demo.springcloud.service.im.receiver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 描述信息
 *
 * @author Ke Wang
 * @date 2020/10/14
 */
@Component
@RabbitListener(queues = {"imQueue"})
@Slf4j
public class IMQueueReceiver {

    @RabbitHandler
    public void receive(String message) {
      log.info("接收到消息：{}", message);
    }

}
